<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('purchaser_orders', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('order_id')->comment('订单id');
            $table->unsignedBigInteger('purchase_user_id')->comment('下单人id');
            $table->unsignedTinyInteger('show_status')->comment('展示状态 0 待付款 1 待发货 2 待收货 3 完成 4 申请退款 5 已退货 6 取消');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('purchaser_orders');
    }
};
